import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'

// 星港物流
// 设备报警信息表
import deviceAlarm from '@/views/logistics/deviceAlarm'
// 设备配置信息表
import deviceConfig from '@/views/logistics/deviceConfig'
// 设备配置信息详情
import deviceConfigs from '@/views/logistics/deviceConfigs'
// IC卡信息表
import cardList from '@/views/logistics/icCard/cardList'
// IC卡信息表详情
import cards from '@/views/logistics/icCard/cards'
// 制卡记录表
import makeCardList from '@/views/logistics/makeCardList'
// 内部车辆信息表
import vehicleList from '@/views/logistics/vehicle/vehicleList'
// 内部车辆信息表详情
import vehicles from '@/views/logistics/vehicle/vehicles'
// 登记记录表
import loginHistory from '@/views/logistics/loginHistory'
// 结算重量表详情
import settlementWeight from '@/views/logistics/weight/settlementWeight'
// 结算重量表
import settlementWeightDetail from '@/views/logistics/weight/settlementWeightDetail'
// 系统设置表
import systemConfig from '@/views/logistics/systemConfig'
// 用户信息表
import account from '@/views/logistics/account/account'
// 用户信息表详情
import accounts from '@/views/logistics/account/accounts'
// 称重异常信息表
import weighAbnormal from '@/views/logistics/weighAbnormal'
// 称重记录表
import weightData from '@/views/logistics/weightData'
// 抓拍异常
import snapAbnormal from '@/views/logistics/snapAbnormal'
// 系统异常
import systemAbnormal from '@/views/logistics/systemAbnormal'
// 用户信息表
import userList from '@/views/logistics/user/userList'
// 用户信息表详情
import users from '@/views/logistics/user/users'
// 用户信息表
import roleList from '@/views/logistics/role/roleList'
// 用户信息表详情
import roles from '@/views/logistics/role/roles'
// 权限列表
import permissionList from '@/views/logistics/permissionList'
// 流程记录（外部车辆）
import flowExtemalList from '@/views/logistics/flowExtemal/flowExtemalList'
// 内部流程汇总
import summary from '@/views/logistics/summary'
// 内部流程汇总
import print from '@/views/logistics/print'

let routes = [
    {
        path: '/',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/print',
        component: print,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/logistics',
        component: Home,
        name: '开源钢管',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/logistics/deviceAlarm', component: deviceAlarm, name: '设备报警信息表', identity: 'deviceAlarmMessage.index'},
            { path: '/logistics/deviceConfig', component: deviceConfig, name: '设备配置信息表', identity: 'deviceConfig.index'},
            { path: '/logistics/deviceConfigs', component: deviceConfigs, name: '设备配置信息详情', hidden: true},
            { path: '/logistics/icCard/cardList', component: cardList, name: 'IC卡信息表', identity: 'ic.index'},
            { path: '/logistics/icCard/cards', component: cards, name: 'IC卡信息表详情', hidden: true},
            { path: '/logistics/makeCardList', component: makeCardList, name: '制卡记录表', identity: 'icRecord.index'},
            { path: '/logistics/flowExtemal/flowExtemalList', component: flowExtemalList, name: '流程记录（外部车辆）', identity: 'flowExtemal.index'},
            { path: '/logistics/vehicle/vehicleList', component: vehicleList, name: '流程记录（内部车辆）', identity: 'internalVehicle.index'},
            { path: '/logistics/vehicle/vehicles', component: vehicles, name: '内部车辆信息表详情', hidden: true},
            { path: '/logistics/summary', component: summary, name: '内部流程汇总', identity: 'summary.index'},
            { path: '/logistics/loginHistory', component: loginHistory, name: '登记记录表', identity: 'loginHistory.index'},
            { path: '/logistics/weight/settlementWeight', component: settlementWeight, name: '结算重量表', identity: 'settlementWeight.index'},
            { path: '/logistics/weight/settlementWeightDetail', component: settlementWeightDetail, name: '结算重量表详情', hidden: true},
            { path: '/logistics/systemConfig', component: systemConfig, name: '系统设置表', identity: 'systemConfig.index'},
            { path: '/logistics/account/account', component: account, name: '用户信息表', identity: 'account.index'},
            { path: '/logistics/account/accounts', component: accounts, name: '用户信息表详情', hidden: true},
            { path: '/logistics/weighAbnormal', component: weighAbnormal, name: '称重异常信息表', identity: 'weighAbnormal.index'},
            { path: '/logistics/weightData', component: weightData, name: '称重记录表', identity: 'weightdata.index'},
            { path: '/logistics/snapAbnormal', component: snapAbnormal, name: '抓拍异常', identity: 'snapAbnormal.index'},
            { path: '/logistics/systemAbnormal', component: systemAbnormal, name: '系统异常', identity: 'systemAbnormal.index'},
            { path: '/logistics/user/userList', component: userList, name: '用户管理表', identity: 'user.index'},
            { path: '/logistics/user/users', component: users, name: '用户管理表详情', hidden: true},
            { path: '/logistics/role/roleList', component: roleList, name: '角色管理表', identity: 'role.index'},
            { path: '/logistics/role/roles', component: roles, name: '角色管理表详情', hidden: true},
            { path: '/logistics/permissionList', component: permissionList, name: '权限列表', identity: 'permission.index'},
            // { path: '/logistics/flowExtemal/flowInside', component: flowInside, name: '流程记录（内部车辆）'/*, identity: 'flowExtemal.index'*/},
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;